#include "CMPSCSyncContext.h"
#include "CCurThreadSyncContext.h"

namespace TB
{
	void CMPSCSyncContext::Post(const std::function<void()>& cbAction)
	{
		if (CCurThreadSyncContext::GetCurrent().GetSynchronizationContext().get() == this)
			cbAction();
		else
			m_oActions.Push(cbAction);
	}
}
